import axios from 'axios'

const instance = axios.create({
  baseURL: process.env.VUE_APP_BASE_API || '/',
  timeout: 60000
})

instance.interceptors.request.use(
  (config) => {
    return config
  },
  (err) => {
    return err
  }
)

instance.interceptors.response.use(
  (response) => {
    return response
  },
  (err) => {
    return err
  }
)

export default instance
